#pragma once

#include "defs.h"

typedef struct {
  float rayAngle;
  float wallHitX;
  float wallHitY;
  float distance;
  int wasHitVert;
  int wallHitContent;
} ray_t;

extern ray_t rays[NUM_RAYS];

void normaliseAngle(float* angle);
void castRay(float rayAngle, int id);
void castAllRays();
void renderRays();
